from optparse import OptionParser

def fun(option, opt, value, parser):
	print option
	print opt
	print value
	print parser


def main():
	usage = "se usa asi"
	parser = OptionParser(usage)
	parser.add_option("-c", "--ciSvn", action="callback",callback=fun,
	        help="realiza un commit a svn")
	option, args = parser.parse_args()
	print option,args
	


if __name__ == '__main__':
	main()